
function  Parent() {
  this.name = 'parentName'
  this.actions = ['111','2222']
}
Parent.prototype.getName = function(){
  console.log(this.name)
}

function Child() {
}
// console.log(Child.prototype.constructor)
Child.prototype = new Parent()
Child.prototype.constructor = Child
// console.log(Child.prototype.constructor)
const child1 = new Child()
const child2 = new Child()
// child.getName()

child1.actions.push('333')
console.log(child2.actions)